import 'package:flutter/material.dart';
import 'package:flutter_bank/colors.dart';

import 'card.dart';
import 'main.dart';

class AllCards extends StatefulWidget {
  const AllCards({super.key});

  @override
  State<AllCards> createState() => _AllCardsState();
}

class _AllCardsState extends State<AllCards> {
  @override
  Widget build(BuildContext context) {

    scrW = MediaQuery.of(context).size.width;
    scrH = MediaQuery.of(context).size.height;

    return Scaffold(
      appBar: AppBar(
        leading: Icon(
          Icons.keyboard_arrow_left,
          size: 32,
        ),
        title: Text('All Cards'),
        actions: [
          Container(
            padding: EdgeInsets.only(right: 20),
            child: Image.asset(
              'images/home/Group 19993.png',
              width: 30,
              height: 30,
            ),
          )
        ],
      ),
      body: Container(
        margin: EdgeInsets.symmetric(horizontal: 30),
        child: ListView(
          children: [
            StackCards(const Color(0xFF333232),false,scrH * 0.265),
            StackCards(const Color(0xFF645AC8),true,scrH * 0.265),
            StackCards(const Color(0xFF50B1B1), false,scrH * 0.265),
          ],
        ),
      ),
    );
  }


}
